new Vue({
    el: '#eventplace',
    data: {
        //查询回来的表单
        finalList:[],
    },
    filters: {
        formatDate: function (value) {
            let date = new Date(value);
            let y = date.getFullYear();
            let MM = date.getMonth() + 1;
            MM = MM < 10 ? ('0' + MM) : MM;
            let d = date.getDate();
            d = d < 10 ? ('0' + d) : d;
            return y + '-' + MM + '-' + d ;
        }
    },
    methods:{
        getPlaceApply(){
            var list;
            var eventid = document.getElementById("eventid").innerText
            $.ajax({
                // 设置json的属性和值
                url: "/eventPlaceQuery",
                contentType: "application/json;charset=UTF-8",
                data: {"eventid":eventid},
                async:false,
                type: "get",
                success: function (data) {
                    list = data;
                }
            })
            this.finalList = list;
        },
    },
})